home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
gnu
/
nethack.lha
/
nethack-3.1
/
src
/
version.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-18
|
818b
|
48 lines
/* SCCS Id: @(#)version.c 3.1 92/01/04 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
#include "hack.h"
#include "date.h"
#ifndef BETA
# if defined(MICRO) && !defined(AMIGA) && !defined(TOS)
# include "patchlev.h"
# else
# include "patchlevel.h"
# endif
#endif
int
doversion()
{
#ifdef BETA
pline("%s NetHack Beta Version %s - last build %s.",
#else
pline("%s NetHack Version %s.%d - last build %s.",
#endif
PORT_ID, VERSION,
#ifndef BETA
PATCHLEVEL,
#endif
BUILD_DATE); /* from date.h, generated by 'makedefs' */
return 0;
}
int
doextversion()
{
display_file(OPTIONS_USED, TRUE);
return 0;
}
#ifdef MICRO
boolean
comp_times(filetime)
long filetime;
{
return (filetime < BUILD_TIME);
}
#endif
/*version.c*/